#pragma once
#include "Enemy.h"
#include <list>

class cEnemyGroup
{
  typedef std::list<cEnemy *> cEnemyList;
  typedef cEnemyList::iterator cEnemyListIt;  
  cEnemyList mEnemies;
  unsigned int muiMinX;
  unsigned int muiMaxX;
  unsigned int muiMinY;
  unsigned int muiMaxY;
  int miMoveDirection;
  float mfElapsedTime;
  float mfElapsedTimeDown;
  float mfLateralSpeed;
  public:
    cEnemyGroup(void):miMoveDirection(-1),mfLateralSpeed(0.75){};
    ~cEnemyGroup(void);
    void AddEnemy(cEnemy *loEnemy);
    void RemoveEnemy(cEnemy *loEnemy);
    void Update(float lfTimeStep);
    void Render();
  private:
    void CalculateLimitEnemies();
};
